#include "tinyrpc/net/eventloopthread.h"
#include <iostream>
using namespace TinyRPC;
int main(){
    EventLoopThread loopThread;
    EventLoop * loop = loopThread.start();
    loop->runAfter(1,Task([&](){
        sleep(1);
        std::cout<<"in eventloop"<<std::endl;
    },false));
    sleep(4);
    loopThread.quit();
    

    
}